body {
    margin: 0;
    display: flex;
    flex-direction:column;
    height: 100vh;
    user-select: none;
}
#mask{
    visibility: hidden;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .5);
    z-index: 99;
}
#shop{
    visibility: hidden;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .8);
    color: #fff;
    font-size: 28px;
    z-index: 9999;
}
#shop .desc{
    padding-left: 40px;
}
#shop .btn{
    display: block;
    width: 400px;
    height: 80px;
    line-height: 80px;
    text-align: center;
    margin: 60px auto;
    background: url("./images/button_bg.png") no-repeat center;
    background-size: 100% 100%;
}
#game, #panel{
    /*opacity: 0;*/
}
#show{
    position: relative;
    width: 200vw;
    height: 200vw;
    zoom: .5;
}
#game {
    position: absolute;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    background: url("./images/grid.png");
    border: 12px solid transparent;
    border-image: url("./images/border.png") 8 8 round;
}

#static, #active{
    position: absolute;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border: 12px solid transparent;
    z-index: 999;
}
#dialog, #confirm{
    visibility: hidden;
    position: absolute;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    margin: auto;
    background-color: #000;
    border: 4px solid transparent;
    border-image: linear-gradient(to right, #c8c8c8, #f4f4f4, #c8c8c8) 1 1;
    color: #ddd;
    letter-spacing: 1px;
    z-index: 999;
}
#confirm-icon{
    margin: 10px 20px;
}
#confirm-content{
    padding: 0 20px;
}
#confirm .btns{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20px;
    text-align: center;
}
#confirm .btn{
    display: inline-block;
    width: 150px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: url("./images/button_bg.png") no-repeat center;
    background-size: 100% 100%;
}
#dialog:after{
    content: '点击继续...';
    position: absolute;
    right: 20px;
    bottom: 10px;
    color: #ccc;
    font-size: 14px;
}
#dialog-icon{
    position: absolute;
    left: 20px;
    top: 20px;
    width: 32px;
    height: 32px;
}
#dialog-list{
    margin: 0;
    padding: 0;
    position: absolute;
    left: 30px;
    right: 30px;
    top: 70px;
    bottom: 50px;
    overflow: hidden;
}
#dialog-list li{
    list-style: none;
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    font-size: 14px;
}
#dialog-list li:nth-of-type(1){
    opacity: 1;
}

#message{
    opacity: 0;
    position: absolute;
    height: 200px;
    line-height: 200px;
    font-size: 40px;
    text-align: center;
    background-color: rgba(0, 0, 0, .8);
    color: orange;
    left: 12px;
    right: 12px;
    bottom: 12px;
    margin: auto;
}

/* 面板 */
#panel{
    /*display: none;*/
    position: relative;
    flex: 1;
    box-sizing: border-box;
    background: url("./images/panel_bg.png") no-repeat center;
    background-size: 100% 100%;
    user-select: none;
}

/* 控制器 */
#control {
    width: 200px;
    height: 200px;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    background: url("./images/interface/normal.png") no-repeat;
    background-size: cover;
}
#control.up{
    background: url("./images/interface/up.png") no-repeat;
    background-size: cover;
}
#control.down{
    background: url("./images/interface/down.png") no-repeat;
    background-size: cover;
}
#control.left{
    background: url("./images/interface/left.png") no-repeat;
    background-size: cover;
}
#control.right{
    background: url("./images/interface/right.png") no-repeat;
    background-size: cover;
}
.control-btn{
    position: absolute;
    left: 0;
    right: 0;
}

/* 玩家信息 */
#panel .info{
    padding: 5px 0;
    overflow: hidden;
    font-size: 14px;
}
#panel .info p{
    margin: 0;
    float: left;
    font-size: 12px;
    width: 25%;
    color: #333;
    text-align: center;
    color: orangered;
}

#menu-btn{
    position: absolute;
    width: 32px;
    height: 32px;
    background-image: url("./images/menu.png");
    bottom: 20px;
    right: 20px;
}
#menu-wrap{
    position: fixed;
    width: 100%;
    left: 100vw;
    top: 0;
    bottom: 0;
    background-color: #333;
    transition: .5s;
    z-index: 9999;
}
#menu-wrap .title{
    color: orange;
    text-align: center;
    letter-spacing: 2px;
}
#menu-wrap button{
    display: block;
    width: 80%;
    margin: 20px auto;
    line-height: 2em;
}
#chuansong-btn{
    position: absolute;
    right: 20px;
    top: 40px;
    width: 32px;
    height: 32px;
    background-image: url("./images/items/chuansong.png");
}
#item-btn{
    position: absolute;
    right: 20px;
    top: 100px;
    width: 32px;
    height: 32px;
    background-image: url("./images/item_btn.png");
}
#monster-book{
    position: absolute;
    left: 20px;
    top: 40px;
    width: 32px;
    height: 32px;
    background-image: url("./images/book.png");
}
#monster-book-wrap{
    position: fixed;
    left: 0;
    right: 0;
    top: 100%;
    height: 100%;
    background: url("./images/monster_book_bg.jpg") no-repeat center;
    background-size: cover;
    transition: .5s;
    z-index: 9999;
}
#monster-book-wrap .title{
    margin-top: 20px;
    margin-bottom: 5px;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 2px;
    text-align: center;
    color: rgb(71, 31, 31);
}
#monster-book-wrap .border{
    width: 80%;
    margin: 0 auto;
    height: 4px;
    background: linear-gradient(to right, rgba(71, 31, 31, .2), rgba(71, 31, 31, .8), rgba(71, 31, 31, .2));
}
#monster-book-wrap .line{
    border-top: 1px solid rgb(71, 31, 31);
    margin-top: 10px;
}
#monster-book-close, #close-floor{
    position: absolute;
    width: 157px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    color: #fff;
    left: 0;
    right: 0;
    margin: 0 auto;
    bottom: 20px;
    background-image: url("./images/button_bg.png");
}
#monster-list{
    position: absolute;
    left: 20px;
    right: 0;
    top: 70px;
    bottom: 70px;
    overflow-y: scroll;
    font-size: 14px;
    color: rgb(71, 31, 31);
}
#monster-list .monster-row{
    margin: 20px 0;
}
#monster-list .monster-row:after{
    display: block;
    content: '';
    clear: both;
}
#monster-list .left{
    float: left;
    width: 80px;
    text-align: center;
}
#monster-list .right{
    float: right;
}
#monster-list .top{
    color: rgb(51, 11, 11);
}
#monster-list .bottom{
    margin-top: 5px;
    color: green;
}
#monster-list .right p{
    display: inline-block;
    margin: 0;
    width: 70px;
    font-size: 12px;
    padding-right: 4px;
}
#monster-list .right img{
    width: 28px;
    margin-right: 4px;
}
#monster-list .right img, #monster-list .right span{
    vertical-align: middle;
}
#key-list{
    position: absolute;
    left: 10px;
    top: 90px;
    margin: 0;
    padding: 0;
}
#key-list li {
    list-style: none;
    width: 100px;
    margin-bottom: 10px;
}
#key-list li span{
    display: inline-block;
    font-size: 14px;
    color: #333;
    height: 32px;
    line-height: 32px;
    vertical-align: middle;
}
#key-list .key{
    width: 32px;
}
#yellowkey{
    background-image: url("./images/items/yellowkey.png");
}
#bluekey{
    background-image: url("./images/items/bluekey.png");
}
#redkey{
    background-image: url("./images/items/redkey.png");
}
#floor{
    visibility: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .9);
    color: #fff;
    text-align: center;
    letter-spacing: 1px;
    z-index: 9999;
}
#floor .title{
    font-size: 18px;
    font-weight: normal;
    margin-bottom: 10px;
}
#floor .desc{
    margin: 0;
    font-size: 14px;
}
#floor-list{
    position: absolute;
    z-index: 9999;
    padding: 0;
    margin: 0;
    text-align: left;
    left: 20px;
    right: 20px;
    top: 80px;
    bottom: 70px;
    overflow-y: scroll;
}
#floor-list li{
    width: 80px;
    display: inline-block;
    list-style: none;
    height: 30px;
    line-height: 30px;
    background-color: rgb(230, 179, 61);
    color: #000;
    border-radius: 4px;
    margin: 5px 10px;
    box-sizing: border-box;
    text-align: center;
}
#floor-list li.active{
    border: 2px solid crimson;
}
#floor-num{
    color: #333;
    padding-left: 4px;
    letter-spacing: 1px;
}